﻿@model  IEnumerable<成绩表>
@{
    ViewBag.Title = "Transcripts";
}
<main aria-labelledby="title">
    <h2 id="title">@ViewBag.Title</h2>
    <h3>@ViewBag.Message</h3>
    <table class="table">
        <thead>
            <tr>
                <th>
                    @Html.DisplayNameFor(model => model.学号)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.姓名)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.习题成绩)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.测试成绩)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.考试成绩)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.总成绩)
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var result in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(model=>result.学号)
                    </td>
                    <td>
                        @Html.DisplayFor(model=>result.姓名)
                    </td>
                    <td>
                        @Html.DisplayFor(model=>result.习题成绩)
                    </td>
                    <td>
                        @Html.DisplayFor(model=>result.测试成绩)
                    </td>
                    <td>
                        @Html.DisplayFor(model=>result.考试成绩)
                    </td>
                    <td>
                        @Html.DisplayFor(model=>result.总成绩)
                    </td>
                </tr>
            }
        </tbody>
    </table>
    <p>到底啦--</p>
</main>